package com.htsk.city.services.core.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.time.Instant;


@Data
public class OrderVo {
    private Long orderId;
    private String orderNo;
    private String appId;
    private String openid;
    private Long userId;
    private Integer orderStatus;
    private BigDecimal totalAmount;
    private BigDecimal payAmount;
    private BigDecimal discountAmount;
    private BigDecimal freightAmount;
    private Integer payType;
    private Instant payTime;
    private String transactionId;
    private String deliveryCompany;
    private String deliveryNo;
    private Instant deliveryTime;
    private Instant receiveTime;
    private String remark;
    private Integer source;
    private Integer isDeleted;
    private Instant createTime;
    private Instant updateTime;

    // orderItem
    private Long itemId;
    private BigDecimal price;
    private Integer quantity;
    private BigDecimal subtotal;
    private Integer refundStatus;
    private BigDecimal refundAmount;
    private Instant refundTime;
    private String refundReason;
    private Long technicianId;
    private String technicianName;
    private String mobile;
    private Instant appointmentTime;
    private Long serviceSubCategoryId;
    private String serviceSubCategoryName;
    private BigDecimal userLat;
    private BigDecimal userLng;
    private String address;
    private String description;
}
